import QtQuick 1.0

Item {
    width: 50
    height: 30
    property bool checked: false
    Rectangle {
        anchors.fill: parent
        radius: 8
        color: "#999999"
    }

    Rectangle {
        anchors.verticalCenter: parent.verticalCenter
        height: parent.height - 2
        x: parent.checked?parent.width-width-1:1
        width: 30
        radius: 8
        color: "#f0f0f0"
    }
}
